			<div class="full_w">
				<div class="h_title">New Team</div>
				<form action="handlers/addTeam.php" method="post" enctype="multipart/form-data">
					<div class="element">
						<label for="name">Team Name <span class="red">(required)</span></label>
						<input id="name" name="name" class="text" />
					</div>
					<div class="element">
						<label for="crest">Team Crest </label>
						<input type="file" name="crest" />
					</div>
					<div class="element">
						<label for="image">Team Image </label>
						<input type="file" name="image" />
					</div>
					<div class="element">
						<label for="league">League</label>
						<select name="league">
							<option value="0">-- no league</option>
							<?php
                                $niz = getAllLeagues();
                                
                                foreach ($niz as $lea) {
                            ?>
                                    <option value="<?php echo $lea->id; ?>"><?php echo $lea->ime; ?> season <?php echo $lea->sezona; ?></option>
                            <?php
                                }
                            ?>
						</select>
					</div>
					<div class="entry">
						<button type="submit" class="add">Save Team</button> <button class="cancel">Cancel</button>
					</div>
				</form>
				<div class="n_ok"><p>You have successfully added new Team to database!</p></div>
				<div class="n_error"><p>Error! New team is not added to database.</p></div>		
			</div>
			
			<div class="full_w">
				<div class="h_title">Teams</div>
				<h2>List of Teams</h2>
				<p>You can change, add or delete teams here.</p>
				
				<div class="entry">
					<div class="sep"></div>
				</div>
				<table>
					<thead>
						<tr>
							<th scope="col">ID</th>
							<th scope="col">Name</th>
							<th scope="col" style="width: 65px;">Modify</th>
						</tr>
					</thead>
						
					<tbody>
						<?php
                            $niz = getAllTeams();
                            
                            foreach ($niz as $team) {
                        ?>
                        <tr>
                            <td class="align-center"><?php echo $team->id; ?></td>
                            <td><?php echo $team->ime; ?></td>
                            <td>
                                <a href="#" class="table-icon edit" title="Edit"></a>
                                <a href="#" class="table-icon archive" title="Make Active"></a>
                                <a href="handlers/deleteTeam.php?id=<?php echo $team->id; ?>" class="table-icon delete" title="Delete"></a>
                            </td>
                        </tr>
                        <?php
                            }
                        ?>
					</tbody>
				</table>
				<div class="entry">
					<div class="pagination">
						<span>« First</span>
						<span class="active">1</span>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
						<span>...</span>
						<a href="">23</a>
						<a href="">24</a>
						<a href="">Last »</a>
					</div>
					<div class="sep"></div>		
					<a class="button add" href="">Add new League</a> 
				</div>
			</div>